<!--
 * @Author: Dagon
 * @Date: 2021-03-25 11:53:52
 * @Description: 实现一个三栏布局左边宽100px右边宽160px，中间部分要自适应并且要优先加载
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>三栏布局--float</title>
</head>
<style>
  .box {
    float: left;
    width: 100%;
  }

  .middle {
    height: 100px;
    background-color: aquamarine;
    margin: 0 160px 0 100px;
  }

  .left {
    width: 100px;
    height: 100px;
    background-color: blueviolet;
    float: left;
    margin-left: -100%;
  }

  .right {
    width: 160px;
    height: 100px;
    background-color: blanchedalmond;
    margin-left: -160px;
    float: left;
  }
</style>

<body>
  <div class="box">
    <div class="middle"></div>
  </div>
  <div class="left"></div>
  <div class="right"></div>
</body>

</html>